|
Расположение в меню |
---|
Modification → Укоротить/Растянуть |
Верстаки |
Draft, Arch |
Быстрые клавиши |
T R |
Представлено в версии |
- |
См. также |
Выдавить |
The Draft Trimex command trims or extends a selected object. Intersections with the edge of another object can be used to determine new endpoints. The command can also be used to extrude a face, in which case it creates a Part Extrude object.
Top: a Draft Wire extended and then trimmed.
Bottom: a face extruded into a solid body.
false
.The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
Here is an example to explain the modifier keys. The left edge or the bottom edge of the U-shaped wire was extended. All Draft Snaps were turned off.
See also: Draft Snap and Draft Constrain.
The modifier key mentioned here can be changed. See Draft Preferences.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
There is no Python method to trim objects. To extrude objects use the extrude
method of the Draft module.
extrusion = extrude(obj, vector, solid=False)
obj
is the object to be extruded.vector
is the extrusion direction and distance.solid
is True
a solid is created instead of a shell.extrusion
is returned with the created object.Пример:
import FreeCAD as App
import Draft
doc = App.newDocument()
rectangle = Draft.make_rectangle(1500, 500)
doc.recompute()
vector = App.Vector(0, 0, 300)
solid = Draft.extrude(rectangle, vector, solid=True)
doc.recompute()